﻿USE [ShopDB]
GO

/****** Object:  Table [dbo].[Baskets]    Script Date: 04/07/2011 15:52:11 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Baskets]') AND type in (N'U'))
DROP TABLE [dbo].[Baskets]
GO

USE [ShopDB]
GO

/****** Object:  Table [dbo].[Baskets]    Script Date: 04/07/2011 15:52:12 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Baskets](
	[UserName] [nvarchar](256) NOT NULL,
	[ProductID] [bigint] NOT NULL,
	[Quantity] [bigint] NOT NULL,
 CONSTRAINT [PK_Basket] PRIMARY KEY CLUSTERED 
(
	[UserName] ASC,
	[ProductID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO


